package com.payment.ktb.activity.main4;

import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.payment.ktb.R;
import com.payment.ktb.activity.BaseActivity;
import com.payment.ktb.activity.MainActivity;
import com.payment.ktb.constants.ConstantsSettle;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * Created by syd on 2016/6/12.
 */
public class NocardSettleResultFailActivity extends BaseActivity {


    @BindView(R.id.tv_nocardsettleresultfail_reason)
    TextView tv_nocardsettleresultfail_reason;


    @BindView(R.id.tv_nocardsettleresultfail_amount)
    TextView tv_nocardsettleresultfail_amount;

    @BindView(R.id.tv_nocardsettleresultfail_time)
    TextView tv_nocardsettleresultfail_time;
    @BindView(R.id.tv_nocardsettleresultfail_settleno)
    TextView tv_nocardsettleresultfail_settleno;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        setContentView(R.layout.activity_nocardsettleresultfail);
        ButterKnife.bind(this);
        hideTitleBack();
        tv_nocardsettleresultfail_reason.setText("失败原因：" + ConstantsSettle.settleReason);
        initData();
        initTitle("结算状态");
    }



    /**
     *
     */
    private void initData() {

        tv_nocardsettleresultfail_amount.setText(ConstantsSettle.amount);
        tv_nocardsettleresultfail_time.setText(ConstantsSettle.settleTime);
        tv_nocardsettleresultfail_settleno.setText(ConstantsSettle.settleNo);
    }



    @OnClick(R.id.btn_nocardsettleresultfail_back)
    public void clickEvent(View view) {
     startActivity(MainActivity.class);
    }


}
